import Vue from 'cheways-vue'
import places2 from './places.json'  //每个空位的组件
import dragDrop from '../../nopack/drag-drop2.js'

dragDrop.ajaxPlaces(places2, function(p) {
	var places = p.slice(7, 12);
	dragDrop.init(places, function() {
		window.vm = new Vue({
			el: '#app',
			data: {
				components: [],
				places: places,
			},
			methods: {
				dragOver: dragDrop.dragOver,
				drop: dragDrop.drop,
				getPlaces: dragDrop.getPlaces,
			}
		})
	})
})